package com.fkdx.dao.mapper;

import com.fkdx.dao.condition.TicalCondition;
import com.fkdx.dao.entity.Tical;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository()
public interface TicalMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Tical record);

    Tical selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Tical record);
    
    int updateSelective(Tical record);

    List<Tical> selectAll(TicalCondition condition);

    int updateByIds(@Param("ids") List<Long> ids);

    void insertBatch(@Param("list") List<Tical> list);

    List<Tical> selectByType(@Param("userName") String userName,@Param("type")  Integer type);
}
